<?php


namespace App\Exceptions;

use App\helper\WebResp;
use Exception;
class FiledException extends Exception
{
    /**
     * 转换异常为 HTTP 响应
     *
     * @param  \Illuminate\Http\Request
     * @return \Illuminate\Http\Response
     */
    public function render($request)
    {
        return  WebResp::error($this->getMessage());
    }
}

